package com.hualan.service;

import com.hualan.domain.Heartmark;
import com.hualan.mapper.HeartmarkMapper;
import com.hualan.service.impl.HeartmarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HeartmarkServiceImpl implements HeartmarkService {

    @Autowired
    private HeartmarkMapper heartmarkMapper;
    @Override
    public List<Heartmark> findAllHeartmark() {
        return heartmarkMapper.findAllHeartmark();
    }

    @Override
    public List<Heartmark> findMarkLikeByName(String markName) {
        return heartmarkMapper.findLikeHeartmark(markName);
    }
}
